package com.dream.technology.service.impl;

import com.dream.technology.db.dao.RcFieldMapper;
import com.dream.technology.db.entity.RcField;
import com.dream.technology.db.entity.RcFieldQuery;
import com.dream.technology.service.RcFieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("rcFieldService")
public class RcFieldServiceImpl implements RcFieldService {

    @Autowired
    RcFieldMapper rcFieldMapper;

    @Override
    public int countByExample(RcFieldQuery example) {
        return rcFieldMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(RcFieldQuery example) {
        return rcFieldMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return rcFieldMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RcField record) {
        return rcFieldMapper.insert(record);
    }

    @Override
    public int insertSelective(RcField record) {
        return rcFieldMapper.insertSelective(record);
    }

    @Override
    public List<RcField> selectByExample(RcFieldQuery example) {
        return rcFieldMapper.selectByExample(example);
    }

    @Override
    public RcField selectByPrimaryKey(Long id) {
        return rcFieldMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(RcField record, RcFieldQuery example) {
        return rcFieldMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(RcField record, RcFieldQuery example) {
        return rcFieldMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(RcField record) {
        return rcFieldMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RcField record) {
        return rcFieldMapper.updateByPrimaryKey(record);
    }
}
